package com.ouyy.volunteerservice.volunteer.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ouyy.volunteerservice.volunteer.domain.po.Medieaview;

import com.ouyy.volunteerservice.volunteer.mapper.medieaViewMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class medieaViewService extends ServiceImpl<medieaViewMapper, Medieaview> {
    private final medieaViewMapper medieaViewmapper;

    @Autowired
    public medieaViewService(medieaViewMapper medieaViewmapper) {
        this.medieaViewmapper = medieaViewmapper;
    }

    // 增加点击数
    public void incrementClickCount(Integer articleId) {
        medieaViewmapper.incrementClickCount(articleId);
    }
}
